Low Space Data Structures for Geometric Range Mode Query
نویسندگان
چکیده
Let S be a set of n points in an [n] grid, such that each point is assigned a color. Given a query range Q = [a1, b1] × [a2, b2] × . . . × [ad, bd], the geometric range mode query problem asks to report the most frequent color (i.e., a mode) of the multiset of colors corresponding to points in S ∩ Q. When d = 1, Chan et al. (STACS 2012 [2]) gave a data structure that requires O(n + (n/∆)/w) words of space and supports range mode queries in O(∆) time for any ∆ ≥ 1, where w = Ω(log n) is the word size. Chan et al. also proposed a data structures for higher dimensions (i.e., d ≥ 2) with O(sn + (n/∆) ) space and O(∆ · tn) query time, where sn and tn denote the space and query time of a data structure that supports orthogonal range counting queries on the set S. In this paper we show that the space can be improved without any increase to the query time, by presenting an O(sn + (n/∆) /w)-space data structure that supports orthogonal range mode queries on a set of n points in d dimensions in O(∆ · tn) time, for any ∆ ≥ 1. When d = 1, these space and query time costs match those achieved by the current best known one-dimensional data structure.
منابع مشابه
Cell Probe Lower Bounds and Approximations for Range Mode
The mode of a multiset of labels, is a label that occurs at least as often as any other label. The input to the range mode problem is an array A of size n. A range query [i, j] must return the mode of the subarray A[i], A[i+ 1], . . . , A[j]. We prove that any data structure that uses S memory cells of w bits needs Ω( log n log(Sw/n) ) time to answer a range mode query. Secondly, we consider th...
متن کاملParallel Algorithms for Grounded Range Search and Applications
We present a parallel algorithm for solving the grounded range search problem in associative-function mode using a BSP like model referred to as the Coarse Grained Multicomputer (CGM). Given a set S of n weighted points in the plane, the algorithm requires O(1) communication rounds (h-relations with h = O(n=p)), O((n=p) log n) local computation, and O(n=p) memory per processor (n=p p), to solve...
متن کاملانتخاب مناسبترین زبان پرسوجو برای استفاده از فراپیوندها جهت استخراج دادهها در حالت دیتالوگ در سامانه پایگاه داده استنتاجی DES
Deductive Database systems are designed based on a logical data model. Data (as opposed to Relational Databases Management System (RDBMS) in which data stored in tables) are saved as facts in a Deductive Database system. Datalog Educational System (DES) is a Deductive Database system that Datalog mode is the default mode in this system. It can extract data to use outer joins with three query la...
متن کاملRange Searching in Categorical Data: Colored Range Searching on Grid
Range searching, a fundamental problem in numerous applications areas, has been widely studied in computational geometry and spatial databases. Given a set of geometric objects, a typical range query asks for reporting all the objects that intersect a query object. However in many applications, including databases and network routing, input objects are partitioned into categories and a query as...
متن کاملExternal Geometric Data Structures
Many modern applications store and process datasets much larger than the main memory of even state-of-the-art high-end machines. Thus massive and dynamically changing datasets often need to be stored in space efficient data structures on external storage devices such as disks, and in such cases the Input/Output (or I/O) communication between internal and external memory can become a major perfo...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Theor. Comput. Sci.
دوره 581 شماره
صفحات -
تاریخ انتشار 2014